package com.chenyue.cm.live.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: ljy
 * @Title: LiveUser
 * @Description: 主播信息
 * @Date: 2021-08-11
 */
@Data
public class LiveUser {

    @ApiModelProperty(value = "主播id")
    private Integer liveId;

    @ApiModelProperty(value = "主播名")
    private String liveUser;

    @ApiModelProperty(value = "直播间名称")
    private String liveName;

    @ApiModelProperty(value = "直播编号")
    private String liveNum;

    @ApiModelProperty(value = "直播封面")
    private String liveLogo;

    @ApiModelProperty(value = "身份")
    private String role;

    @ApiModelProperty(value = "身份 1裁判/解说员 2赛场助理")
    private Integer roleId;

    @ApiModelProperty(value = "主播头像")
    private String headImg;

    @ApiModelProperty(value = "主播电话")
    private String phone;

    @ApiModelProperty(value = "直播间介绍")
    private String introduce;

    @ApiModelProperty(value = "推流地址")
    private String pushUrl;

    @ApiModelProperty(value = "推流地址过期时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushExpire;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd MM:hh:ss")
    private Date ct;

    @ApiModelProperty(value = "主播类型(1普通主播2赛事主播)")
    private Integer type;

}
